package javabase.desginpattern.behavior.handlerchain;

/**
 * 抽象处理者
 * @author fance
 * @date 18-4-26 下午2:52
 */
public abstract class Leader {

    public String name;
    protected Leader successor; // 后继者

    public Leader(String name) {
        this.name = name;
    }

    public void setSuccessor(Leader successor) {
        this.successor = successor;
    }
    public abstract void handleRequest(LeaveNode leaveNode);
}
